import pycurl
from io import BytesIO
# 执行cURL命令
with open('C:\\Users\\ashclementson\\Desktop\\curl.txt', 'r') as f:
    text = f.read()



# 创建一个内存缓冲区
buffer = BytesIO()
curl = pycurl.Curl()

# 设置cURL选项
curl.setopt(curl.URL, '
curl.setopt(curl.WRITEDATA, buffer)

# 执行cURL请求
curl.perform()
curl.close()

# 获取响应内容
body = buffer.getvalue().decode('utf-8')
print("Response Body:", body)